<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>
			default
		</title>
		<link rel="stylesheet" type="text/css" href="themes/default/default.css"/>
		<script src="kindeditor-all-min.js"></script>
	<script src="lang/zh-CN.js"></script>
	<style>
		 .ke-icon-auto {
                                background-image:url(../plugins/image/images/align_left.gif);
                                width: 16px;
                                height: 16px;
                        }
	</style>
	</head>
	<body>
	
	<textarea name="" id="default" >
		
	</textarea>
		
		
		<script>
			KindEditor.ready(function(K){
				window.editor=K.create("#default",{
				width:"100%",
				height:"300px",
				items:[
        'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
        'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
        'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen',
        'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
        'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
        'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
        'anchor', 'link', 'unlink', '|', 'about','auto'
],			
				resizeType:0,
				//2或1或0，2时可以拖动改变宽度和高度，1时只能改变高度，0时不能拖动
				pasteType:1,
				//0:禁止粘贴, 1:纯文本粘贴, 2:HTML粘贴
				afterCreate:function(){
					console.log("创建成功")
				},
				afterChange:function(){
					console.log(this.html())
				},
				
			})
			});
			KindEditor.plugin('auto',function(K){
				var editor=this,name='auto';
				editor.clickToolbar(name,function(){
					editor.insertHtml("你好")
				})
			})
			KindEditor.lang({
				auto:"你好"
			})
		</script>
	</body>
</html>
